<!doctype html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<script>
var element = document.createElementNS("http://example.com/", "example");
[
    "getAttribute()",
    "getAttributeNS()",
    "getAttributeNS('http://example.com/')",
    "getAttributeNode()",
    "getAttributeNodeNS()",
    "getAttributeNodeNS('http://www.w3.org/2000/svg')",
    "getElementsByClassName()",
    "getElementsByTagName()",
    "getElementsByTagNameNS()",
    "getElementsByTagNameNS('http://example.com/')",
    "hasAttributeNS()",
    "hasAttributeNS('http://example.com/')",
    "removeAttribute()",
    "removeAttributeNS()",
    "removeAttributeNS('http://example.com/')",
    "removeAttributeNode()",
    "setAttribute()",
    "setAttribute('example')",
    "setAttributeNS()",
    "setAttributeNS('http://example.com/')",
    "setAttributeNS('http://example.com/', 'example')",
    "setAttributeNode()",
    "setAttributeNodeNS()"
].forEach(function(expr)
{
    shouldThrow("element." + expr);
});
</script>
</body>
</html>
